<template>
	<view class="mainpadding">
		<view class="mainpadding">
			<!-- 审核拒绝 -->
			<view class="" v-if="userInfo.smrz.status==3">
				<view class="margin_top6 flexcenter ">
					<image style="width: 480rpx;height: 356rpx;" src="../static/image/system/yjj.png" mode=""></image>
				</view>
				<view class="margin_top2 xiaohei sishi fonweight textcenter">已拒绝</view>
				<view class="margin_top ershil textcenter" style="color: #555555;">抱歉，您提交的信息被驳回，请重新提交</view>
				<view class="margin_top4 xiaohuang ershil textcenter fonweight">驳回原因：
					<text class="ershil textcenter" style="color: #555555;">{{userInfo.smrz.bz}}</text>
				</view>
			</view>
			<!-- 审核中 -->
			<view class="" v-if="userInfo.smrz.status==1">
				<view class="margin_top6 flexcenter ">
					<image style="width: 480rpx;height: 356rpx;" src="../static/image/system/shz.png" mode=""></image>
				</view>
				<view class="margin_top2 xiaohei sishi fonweight textcenter">审核中</view>
				<view class="margin_top ershil textcenter" style="color: #555555;">您的信息已提交，正在审核中</view>
			</view>
			<view class="bighbtn margin_top6"  v-if="userInfo.smrz.status==1 || userInfo.smrz.status==3" @click="backpage()">返回上一次</view>
			<view class="bigbtn margin_top"  v-if="userInfo.smrz.status==3" @click="shangchuan()">重新上传</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				userInfo: {}
			}
		},
		onLoad() {
			httpRequest.request('/api/user/index', 'GET', {}).then(res => {
				if (res.code == 1) {
					this.userInfo = res.data
				} else {
					this.userInfo = null
				}
			})
		},
		methods: {
			backpage() {
				uni.navigateBack(1)
			},
			shangchuan(){
				uni.redirectTo({
					url:"/pages_mypage/renzhengxx"
				})
			},
		}
	}
</script>

<style>

</style>